Release 10.1A: OpenEdge Deployment:
Managing 4GL Applications
Maintaining the progress.ini file
The
progress.inifile specifies environment variable settings for the Windows environment. It contains sections and settings for the following types of options:Figure 4–2 shows excerpts from a sample
progress.inifile.
Figure 4–2: Sample Progress initialization file in Windows
When installed, the
progress.inifile contains the following sections:The
progress.inifile can also contain the following optional sections:You can edit the
progress.inifile to customize environments at different sites. Theprogress.inifile is located in theinstall-dir\bindirectory, by default.The following sections describe each of these
progress.inifile sections.Startup section
The Startup section of the
progress.inifile contains options that specify the following environment characteristics for graphical user interface clients:The Startup section also contains OpenEdge environment variables that you can set for use with graphical user interface clients. See Table 4–5 in the "Specifying environment variables" section for a list of environment variables you can set in the Startup section.
The Startup section contains the following options:
AlignFrameTitles
Lets you specify the alignment of frame titles in a graphical user interface. Valid settings include the following: 0 (left justified), 1 (centered), and 2 (right justified). The default is centered.
ButtonImageBorderMode
Use this setting if you want to change the default behavior of how OpenEdge draws borders on buttons with images. The border drawing behavior for image buttons depends on two factors:
- The type of image button—single-image or dual-image. Dual-image buttons use two images (an “up” image and a “down” image). Single-image buttons use one image (an “up” image which is shifted slightly to mimic a “down” appearance for the button).
- The presence of a manifest file. For more details on manifest files, see the "The Windows manifest file" section.
The default behavior is:
- For single-image buttons, OpenEdge creates a Windows XP-style border (rounded corners, no 3D shadow) when using the manifest file. It draws a Windows classic-style border (angular corners with 3D shadow) when not using the manifest file.
- For dual-image buttons, OpenEdge does not draw a border for the button, regardless of whether there is a manifest file. (Note that this is the default behavior. You can change the value of
ButtonImageBorderModeto 2 if you want OpenEdge to draw a border for dual-image buttons.)Table 4–1 describes OpenEdge’s border drawing behavior, based on the value of the
ButtonImageBorderModesetting. If you want to keep the default behavior, you do not need to add this setting to yourprogress.inifile.
Note that
ButtonImageBorderModeaffects clients running on XP with a manifest file and clients running on non-XP systems (or XP without a manifest file). The same setting is required for all clients.CarefulPaint
Lets you set the accuracy with which OpenEdge repaints overlapping 3D widgets and frames. Set to
YESfor OpenEdge to repaint overlapping 3D widgets and frames slowly and carefully. Set toNOfor OpenEdge to repaint overlapping 3D widgets and frames quickly (which might reduce the quality of the graphic). The default value isYES.This option applies only when
UseNative3D=NO.ClientTimeOut
Lets you specify the number of minutes a client session can remain inactive before the server disconnects the session.
The server process determines whether a client has been inactive for a specified period of time, and if so, the server disconnects the client and backs out any related active transactions.
DefaultFixedFont
Lets you specify the default fixed display font.
typefaceA valid typeface name, such as Times or Courier.
point-sizeThe size of the font, in points. If you omit the point size, OpenEdge uses the default point size as defined by the typeface.
keywordYou can specify the following keywords: bold, italic, underline, or strikeout.
scriptnameBy default, OpenEdge uses the script (character set) of the Windows FixedSys font for all fonts specified in the environment. If you select a different script when editing a font using the font common dialog, OpenEdge writes the specified script name to the font entry.
DefaultFont
Lets you specify the default display font.
typefaceA valid typeface name, such as Times or Courier.
point-sizeThe size of the font, in points. If you omit the point size, OpenEdge uses the default point size as defined by the typeface.
keywordYou can specify the following keywords: bold, italic, underline, or strikeout.
scriptnameBy default, OpenEdge uses the script (character set) of the Windows FixedSys font for all fonts specified in the environment. If you select a different script when editing a font using the font common dialog, OpenEdge writes the specified script name to the font entry.
DefaultV6UpdateFont
Lets you specify the Version 6 update font.
typefaceA valid typeface name, such as Times or Courier.
point-sizeThe size of the font, in points. If you omit the point size, OpenEdge uses the default point size as defined by the typeface.
keywordYou can specify the following keywords: bold, italic, underline, or strikeout.
scriptnameBy default, OpenEdge uses the script (character set) of the Windows FixedSys font for all fonts specified in the environment. If you select a different script when editing a font using the font common dialog, OpenEdge writes the specified script name to the font entry.
When V6Display=YES, the font specified by the DefaultV6UpdateFont setting is used when a fill-in is in update mode. The default value for DefaultV6UpdateFont is a version of the system default fixed font with underlines (
fixedsys,underline).The DefaultFixedFont and the DefaultV6UpdateFont should be the same base font. If you change them, make sure that the font is fixed and that the DefaultV6UpdateFont has the underline attribute. OpenEdge does not automatically add the underline attribute to the DefaultV6UpdateFont setting.
EndMsgTitle
EndMsgText
Lets you specify the title and text for the Windows shutdown message box.
When Windows shuts down, a dialog box prompts the user to verify the shutdown. If the user answers
YES, OpenEdge closes and the Windows Exit procedure continues. If the user answersNO, the Windows Exit procedure terminates and Windows remains active.EndMsgTitle can be up to 80 characters long. Its default value is “OpenEdge.” EndMsgText can be up to 80 characters long. Its default value is “Windows is exiting. Is this OK?”.
FrameSpacing
Lets you specify how the OpenEdge layout processor spaces frames.
Setting the value to -1 places the frame at the next character unit boundary. Setting the value to 0 places frames one half of a character unit apart. Setting the value greater than 0 spaces the frames by the specified number of pixels.
ImmediateDisplay
Lets you redisplay the screen at predefined intervals.
If you do not set this option, some Version 6 applications will not draw the screen correctly. Set this option for applications with existing code that you do not want to modify. The default setting is
NO.You can also use the
IMMEDIATE-DISPLAYattribute with theSESSIONsystem handle to surround the offending code. This is the preferred technique.For more information about the
IMMEDIATE-DISPLAYattribute and theSESSIONsystem handle, see OpenEdge Development: Progress 4GL Reference .Keep3DfillinBorder
Set to
YESto display a disabled fill-in field with a border. Set toNOto display a disabled fill-in field without a border. The default value isNO.MultitaskingInterval
Lets you specify how the OpenEdge session interacts with a Windows cooperative multi-tasking environment. Its value determines how often OpenEdge filters events or messages between itself and other Windows applications. As OpenEdge filters these events more often, it executes procedures less efficiently but allows other Windows applications more opportunity to execute. Adjusting the internal event filter is particularly useful during background processing, such as report generation.
To maximize performance during batch-mode processing, set the value to 9999 (the maximum value allowed). If you want to run another application while you run OpenEdge in batch mode, set the value to 1000. If you set the value to 0 (the default), the internal loop never executes. Although this results in high performance, interoperability with other Windows applications is poor. The lower the number, the more often the loop executes, resulting in better interoperability. Set this option for applications with existing code that you do not want to modify.
You can also use the
MULTITASKING-INTERVALattribute with theSESSIONsystem handle to control how OpenEdge interacts with Windows cooperative multi-tasking by surrounding long 4GL processing loops with this attribute.See OpenEdge Development: Progress 4GL Reference for more information about the
MULTITASKING-INTERVALattribute and theSESSIONsystem handle.NoSplash
Set to
YESto turn off display of the splash screen. By default, the OpenEdge GUI client and the WebClient display a splash screen during startup. The screen, which is a blue rectangle with the words “Powered by Progress Software,” disappears when the OpenEdge application starts.Opsys
Lets you specify the value used by the
OPSYSpreprocessor directive or the value returned by theOPSYSfunction. Valid settings include any character string.PopupAppOverridesSys
Set to
Note: The system-default pop-up menu is displayed when you click the right mouse button on a fill-in field or an editor widget and a user-defined pop-up menu is not available.YESto display the system-default pop-up menu only if a user-defined pop-up menu is not available. Set toNOto display the system-default pop-up menu regardless of a user-defined pop-up menu. If a user-defined pop-up menu is available, it is displayed after the system pop-up menu is closed. The default value isYES.PopupNoSysDefault
Set to
Note: The system-default pop-up menu is displayed when you click the right mouse button on a fill-in field or an editor widget and a user-defined pop-up menu is not available.YESto suppress the system-default pop-up menu. Only the user-defined pop-up menu is displayed. The default value isNO.PopupOnMouseDown
Set to
Note: This option applies only to pop-up menus that are displayed with the right mouse button (that is,YESto display a pop-up menu when the right mouse button is depressed. Set toNOto display a pop-up menu when the right mouse button is released. The default value isNO.MENU-MOUSE = 3). Menus that are displayed with the left or middle mouse button are always displayed when the buttons are depressed.PrinterFont
Lets you specify the printer fonts OpenEdge uses with the
OUTPUT TO PRINTERstatement.PrinterFontn
Lets you specify the printer font OpenEdge uses with the
OUTPUT TO LPTnstatement.UseClipChildren
This option is set to
Caution: Do not change the default setting of the UseClipChildren option until you first talk with a Progress Software Technical Support representative.YESby default. It works with the Windows manifest file in drawing buttons. For more information on the manifest file, see the "The Windows manifest file" section.UseNative3D
This option is set to
YESby default. It specifies to use Windows 3D drawing capabilities.Set this option to
NOto use OpenEdge’s 3D drawing capabilities instead. If you set the UseNative3D option toNO, you must also remove theprowin32.exe.manifestfile from yourinstallation-path\bin\directory. If you set this option toNOand you do not remove the manifest file, you will see inconsistencies in the appearance of your user interface.UseSourceEditor
Set to
YESif you want to use the Source Editor (Slick Edit). Set toNOif you want to use Rich Edit editor. Both editors are Unicode-enabled.Use-3D-Size
Lets you specify how OpenEdge calculates the height of a character unit.
If you set the value to
YES, OpenEdge uses the height of a three-dimensional fill-in. If you set the value toNO, OpenEdge uses the height of a non-three-dimensional fill-in. The default setting isYES.V6Display
Lets you specify Progress Version 6 behavior.
When you compile a procedure in Windows, OpenEdge compiles the borders and fonts associated with user interface widgets into the screen layout by default. As a result, you might encounter compilation problems when you try to run a Version 6 application in Progress Version 7 for Windows. There might not be enough space on the display to accommodate the borders and default fonts that are automatically associated with user interface widgets of the Version 6 application.
To avoid this problem, set V6Display to
YESto specify that you are running Version 6 code.You can also set a session attribute to control the run-time setting of the V6Display state. The attribute is
V6DISPLAYand has a Boolean value. Setting this attribute has the same effect as specifying the setting at startup. However, you must hide all existing windows.When you set the V6Display option or session attribute:
- The character unit height is recalculated to the height of the font specified by the DefaultV6UpdateFont option.
- The character unit width is recalculated to the width of an average character in the font specified by the DefaultV6UpdateFont option.
- The default font is automatically changed to use the font specified by the DefaultFixedFont option.
- All OpenEdge fill-ins are created without a border.
- OpenEdge fill-ins keep any trailing spaces.
- All OpenEdge fill-ins that are enabled for update use the font specified by the DefaultV6UpdateFont option (by default, the default fixed font with underlines). This means that updateable fill-ins are drawn with underlines.
- Frame titles are drawn so that the frame title height measures exactly one character unit.
The V6Display option or attribute does not enable support for
Note: The V6Display option is intended for use with applications, not with the OpenEdge ADE. The ADE is not supported when V6Display is set toPUT SCREEN. In addition, if you set the V6Display option, Version 7 applications that have not been compiled with the V6Display option set toYESwill draw screens incorrectly.YES.If you plan to use Version 6 user interface code with Version 7 tools (or your own Version 7 interface), Progress Software recommends that you use the V6Frame option instead of V6Display.
V6FontNumber
Lets you specify the font for Version 6 frames.
By default, this option points to the font defined as font3 in the [Fonts] section. Font3 is the ADE character-mode font. If you change the V6FontNumber value, make sure you define the new font number in the [Fonts] section.
Note: Do not change the definition of font3 in the [Fonts] section. OpenEdge relies on that font definition for other purposes.V6FrameBGC
Lets you specify the default background color for all frames that use the
V6FRAMEoption. Valid settings include any number that corresponds to a color in the OpenEdge color table.WindowSystem
Lets you specify the value used by the
WINDOW-SYSTEMpreprocessor directive. Valid settings include any character string.Colors section
The Colors section of the
Note: Do not change the first 16 colors. These colors are reserved for the Application Development Environment (ADE) tools. Changing them could cause the OpenEdge ADE tools to malfunction.progress.inifile contains options that specify the colors that make up the color table for use with graphical user interface clients. There are 16 colors available to an application for use as either foreground or background colors. You can specify up to 256 colors.Each entry in the Colors section performs two semantic functions: it defines a color, and it maps that color to an integer in the range 0 to 255. An application specifies this integer when making a color assignment to a widget.
Specify a color entry using the following syntax:
nAn integer from 0 to 255 that specifies the color table entry.
RAn integer that specifies the amount of red present in the color.
GAn integer that specifies the amount of green present in the color.
BAn integer that specifies the amount of blue present in the color.
colornameAny of the following color names, mapped to the colors defined in the Windows Control Panel:
Any entries you add to the color table must be sequential. For example, since the installed
progress.inifile defines color0 to color15, the next color you add must be color16. If you add an entry for color17, OpenEdge ignores it if color16 is undefined.For backward compatibility, color0 to color15, as installed, are the same as the colors supported in Version 6. See the chapter about colors and fonts in OpenEdge Development: Programming Interfaces for a listing of these colors.
For backward compatibility, the
progress.inifile specifies the following color pairs for Version 6 applications:
NORMAL,INPUT, andMESSAGESeach take a pair of integer values from 0 to 255. The integers represent color table entries. For example, in the defaultprogress.inifile,NORMALis defined as foreground equal to color table entry 0 (RGB value 0,0,0) and background equal to color table entry 15 (RGB value 255,255,255).The following example shows how to redefine
NORMALas foreground equal to color table entry 3 and background equal to color table entry 12:
Default Window section
The Default Window section of the
progress.inifile specifies the following options for a graphical user interface client’s default window:Following is a sample Default Window section:
Fonts section
The
Note: You can add site-specific fonts to the file. Do not change the first 8 fonts. These fonts are reserved for the Application Development Environment (ADE) tools. Changing them could cause the OpenEdge ADE tools to malfunction.progress.inifile as installed contains font table entries for the OpenEdge ADE tools. OpenEdge uses the default system fonts defined in the Startup section, unless you add additional fonts to the existing font table in the Fonts section.Determine which screen fonts exist in your environment. The fonts you choose should be graphically compatible. One way to choose fonts is to use the font common dialog box.
The font table can contain up to 256 entries. Each entry in the table performs two semantic functions: it names a font that exists in your environment and it maps that font to an integer from 0 to 255. An application specifies this integer when making a font assignment to a widget.
Note: You cannot enter extra spaces in the font definition section. Extra spaces will cause the error 4499.Specify a font entry using the following syntax:
nAn integer that specifies the font table entry.
typefaceA valid typeface name, such as Times or Courier.
point-sizeThe size of the font, in points. If you omit the point size, OpenEdge uses the default point size as defined by the typeface.
keywordYou can specify the following keywords: bold, italic, underline, or strikeout.
scriptnameBy default, OpenEdge uses the script (character set) of the Windows FixedSys font for all fonts specified in the environment. If you select a different script when editing a font using the font common dialog, OpenEdge writes the specified script name to the font entry.
WinChar Startup section
The WinChar Startup section of the
progress.inifile contains options that specify the following environment characteristics for character clients:The WinChar Startup section also contains OpenEdge environment variables that you can set for use with character clients. See Table 4–5 in the "Specifying environment variables" section for a list of environment variables you can set in the WinChar Startup section.
The WinChar Startup section contains the following options:
BrowseRowMarker
Lets you specify a character to represent a browse row marker. Valid settings include any number that corresponds to a character in the
CPSTREAMcharacter set.CursorHeight
Lets you specify the height of a cursor as a percentage. Valid settings include any number between 0 and 100. This option overrides the UseDosCursor setting.
EnableMouse
Set to
YESto enable mouse input. Set toNOto disable mouse input. The default value isYES.FastCursorMode
For WebSpeed agents, this option is set to
YESby default so that the Progress 4GL client does not process the normal hiding and showing of the cursor during display. This is the default behavior for WebSpeed agents since WebSpeed applications do not have cursors (they do not have a console). This option setting improves the performance of WebSpeed applications.For character clients, this option is set to
Caution: To avoid possible performance issues and incorrect cursor behavior, do not change the default setting of this option until you first talk with a Progress Software Technical Support representative.NOby default. UsingFastCursorMode=YESwith the character client on Windows can cause incorrect cursor behavior so make sure you leave this option set toNOif you are not using WebSpeed.MenuMnemonicColor
Lets you specify the color of mnemonic characters in menu items. Valid settings include any number that corresponds to a color in the OpenEdge color table.
SingleLineBorder
Lets you specify the characters used to draw borders and lines (such as frame borders, rectangles, submenu and pop-up menu borders, and horizontal and vertical lines). Valid settings include any eight numbers that correspond to characters in the
CPSTREAMcharacter set, separated by commas.These eight numbers represent the corners and sides of a rectangle and must be specified in the following order: top, bottom, left, right, top-left corner, top-right corner, bottom-right corner, and bottom-left corner.
SysCheckmark
Lets you specify a character to represent a selection marker in widgets (such as a selection list, menu, or browser). Valid settings include any number that corresponds to a character in the
CPSTREAMcharacter set.UseDosCursor
Set to
YESto change the cursor from an underscore to a solid block when switching from insert mode to over-strike mode in a fill-in field or editor widget. Set toNOto use an underscore as the cursor in either mode. The default value isNO.V6Keys
Set to
YESto use a set of key bindings that are Version 6 compatible by default. The default value isNO.V6FKeys
Set to
YESto use the bindings for the CTRL, ALT, SHIFT, and F13 to F39 keys that are Version 6 compatible by default. The default value isNO.WinChar Colors section
The WinChar Colors section of the
progress.inifile contains options that specify the colors that make up the color table for use with character clients.Each entry in the WinChar Colors section performs two semantic functions: it defines a color, and it maps that color to an entry in the color table by specifying an integer from 0 to 255. An application specifies this integer when making a color assignment to a widget.
Specify a color entry using the following syntax:
keyword| colornYou can also specify color0, color1, and color2 using the
NORMAL,INPUT, andMESSAGESkeywords, respectively. The keyword overrides the colornspecification. That is, if you specify both colornand its corresponding keyword, OpenEdge displays the colors you specified with the keyword.fgnd-colorThe color to use for the screen foreground.
bgnd-colorThe color to use for the screen background.
For information about color definitions for the WinChar Colors section, see the Color Phrase reference entry in OpenEdge Development: Progress 4GL Reference .
WinChar Default Window section
The WinChar Default Window section of the
progress.inifile specifies the line mode for a character client. You can specify 50 rows if your hardware supports 50-line mode. Specify 25 rows if you want the application to be compatible with Progress Version 6 or if you want to port the application to a character terminal.The following is an example WinChar Default Window section:
WinChar Keys section
The WinChar Keys section of the
progress.inifile defines the customized key bindings for use with character clients. Table 4–2 lists the user-definable key bindings in the Windows environment. For a complete listing of the Windows key function and key label mappings for handling user input, see OpenEdge Development: Programming Interfaces .
Specify a key-binding entry using the following syntax:
Use a single entry to specify a key binding; additional entries for the same key function are ignored.
If you specify more than one key label, OpenEdge uses the first when it needs to display a key label given a key function, as in “Enter data or press Escape to end.”
For example, the following entry maps the Help key function to the F2 key label, and the Go key function to the F1 key label:
You can use any combination of CTRL, SHIFT, and ALT keys. However, SHIFT only has an effect when used with ASCII keys. If an entry contains nonexistent key labels, the entry is ignored.
Note: Set the V6Keys option in the [WinChar Startup] section to enable OpenEdge to use a set of key bindings that are Version 6 compatible by default.Debug-Init section
Do not modify information in the Debug-Init section.
Debug-Macros section
The Debug-Macros section of the
progress.inifile contains a list of parameters that define initial macros used by the Debugger. You can also define your own macros. For more information, see OpenEdge Development: Debugging and Troubleshooting .Debug-Buttons section
The Debug-Buttons section of the
progress.inifile contains a list of parameters that define initial buttons used by the Debugger. You can also define your own buttons. For more information, see OpenEdge Development: Debugging and Troubleshooting .Keys section
The Keys section is an optional section you can create in the
progress.inifile to customize key bindings for the Windows environment.Table 4–3 lists the static key bindings in the Windows environment.
Table 4–4 lists the user-definable key bindings in the Windows environment.
Keymap section
The Keymap section is an optional section you can create in the
Note: Using the Keymap section is the Version 6 technique for mapping characters. Using conversion tables is a better technique for processing characters. For information about defining conversion tables, see OpenEdge Development: Internationalizing Applications .progress.inifile to define mappings between standard ASCII (7-bit) characters and extended (8-bit) characters. Extended characters are typically non-English alphabetical characters. OpenEdge uses these keymap entries to build a translation table for processing characters in the input and output streams.Use the
INstatement, in a keymap entry, to map an ASCII character to an extended character using the following syntax:
languageAn identifier that appears with the
MAPoption.ascii-charThe 7-bit character, in octal (\
nnn) format. You must specify all three digits.extended-charThe 8-bit character, in octal (\
nnn) format. You must specify all three digits.Use the
OUTstatement, in a keymap entry, to map an extended character to an ASCII character using the following syntax:
You can use multiple
INandOUTstatements in a single keymap entry.If you use extended character sets, you must specify character mappings for each character set on a per-terminal basis. For example, the following code fragment demonstrates how to map characters to German language characters:
The
INstatements in the preceding example map ASCII characters (B, A, a, O, o, U, and u) to German characters (ß, Ä, ä, Ö, ö, Ü, and ü). When OpenEdge sees the character A (\101) on input, it converts the character to Ä (\216). Likewise, when OpenEdge needs to send an Ä to the terminal, it sends [ (\101). The terminal sees A and displays Ä.Suppose the terminal cannot display an Ä. You can use the OUT statement to specify an appropriate character to display for Ä, such as capital A. For example:
You can also specify keymap entries for the input and output streams using the
MAPoption with each of the following OpenEdge language elements:For more information about these language elements, see OpenEdge Development: Progress 4GL Reference .
Specifying environment variables
Table 4–5 lists the environment variables you can set in either the Startup section or WinChar Startup section of the
progress.inifile.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |